import axios from 'axios'
export const reqProcessList = (data) => {
  // 新增销售过程
  axios(
    {
      url: '/api/crm/sales-process/insert',
      method: 'post',
      data: data,
      
    })
    .then(function(response) {
      console.log(response)
    })
    .catch(function(error) {
      console.log(error)
    })
}
// 销售过程列表
export const reqSellList = (data)=>
axios({
  url:'/api/crm/sales-process/condition',
  method:'get',
  params:data
});
// 删除销售过程
export const reqDelSell = (data)=>
axios({
  url:'/api/crm/sales-process/delete',
  method:'delete',
  data:data
});
// 修改销售过程
export const reqUpdateSell = (data)=>
axios({
  url:'/api/crm/sales-process/update',
  method:'put',
  data:data
});
// 销售板框移动
export const reqMoveSell = (data)=>
axios({
  url:'/api/crm/sales-process/move',
  method:'post',
  data:data
});
// 销售机会列表
export const reqChangeList = (data)=>
axios({
  url:'/api/crm/sales-v/condition',
  method:'get',
  params:data
});
// 添加销售机会
export const reqAddChange = (data)=>
axios({
  url:'/api/crm/sales/insert',
  method:'post',
  data:data
});
// 删除销售机会
export const reqDelChange = (data)=>
axios({
  url:'/api/crm/sales/delete',
  method:'delete',
  data:data
});
// 修改销售机会
export const reqUpdataChange = (data)=>
axios({
  url:'/api/crm/sales/update',
  method:'put',
  data:data
});
// 销售机会详情
export const reqChangeDetails= (data)=>
axios({
  url:'/api/crm/sales-v/condition',
  method:'get',
  params:data
});
// 销售机会跟进过程查询
export const reqProcedureList= (data)=>
axios({
  url:'/api/crm/follow-v/condition',
  method:'get',
  params:data
});
// 添加销售机会跟进过程
export const reqAddProcess = (data)=>
axios({
  url:'/api/crm/follow/insert',
  method:'post',
  data:data
});
// 删除过程
export const reqDelProcess = (data)=>
axios({
  url:'/api/crm/follow/delete',
  method:'delete',
  data:data
});
// 计划经费查询
export const reqSectionList = (data)=>
axios({
  url:'/api/crm/section/getSection',
  method:'get',
  params:data
});
//实际经费查询
export const reqReimburseList = (data)=>
axios({
  url:'/api/crm/reimburse/sales-total',
  method:'get',
  params:data
});
// 销售金额汇总
export const reqExpect = (data)=>
axios({
  url:'/api/crm/sales-v/expect-earn-total',
  method:'get',
  params:data
});
// 计划经费配比
export const reqSection = (data)=>
axios({
  url:'/api/crm/section/condition',
  method:'get',
  params:data
});
// 添加计划经费配比
export const reqAddSection = (data)=>
axios({
  url:'/api/crm/section/insert',
  method:'post',
  data:data
});
// 删除计划经费配比
export const reqDelSection = (data)=>
axios({
  url:'/api/crm/section/delete',
  method:'delete',
  data:data
});
// 修改计划经费配比
export const reqUpdataSection = (data)=>
axios({
  url:'/api/crm/section/update',
  method:'put',
  data:data
});